<?php
/**
 * appRain CMF
 *
 * LICENSE
 *
 * This source file is subject to the MIT license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.opensource.org/licenses/mit-license.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@apprain.com so we can send you a copy immediately.
 *
 * @copyright  Copyright (c) 2010 appRain, Team. (http://www.apprain.com)
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 *
 * HELP
 *
 * Official Website
 * http://www.apprain.com/
 *
 * Download Link
 * http://www.apprain.com/download
 *
 * Documents Link
 * http ://www.apprain.com/docs
 */
?>
<?php
    $selected = isset($selected) ? $selected : "";
    $section_title = isset($section_title) ? $section_title : "";
?>
<div class="container_16">
		<div class="header">  <a href="<?php echo $this->baseUrl() ?>" class="branding grid_7">
			<h1>The Original Santa's Phone Calls &reg;</h1>
			<strong>Location in Santa's Snow Castle at the North Pole!</strong> </a>
			<div class="grid_9 user-info">
			    <?php if(App::MemberManager()->AppUserloggedInId()):?>			
					<div>Welcome John! <span class="seperator">|</span> <a href="<?php echo $this->baseurl("/member/logout");?>">Logout</a>!</div>
                <?php else:?>
                    <a href="<?php echo $this->baseurl("/member/signup");?>"><?php echo $this->__('Signup');?></a><span class="seperator">|</span>
                    <a href="<?php echo $this->baseurl("/member/login");?>"><?php echo $this->__('Login');?></a>
                <?php endif;?>
				
				
				<div>
				<?php App::Hook('UI')->Render('template_header_bottom_right_A'); #User Interface Hook ?></div>
			</div>
		</div>
	</div>
	<div class="container_16">
	<div class="top-nav">
		<div class="grid_16"> 		
		<?php $arr= $this->siteMenuClear() ->siteMenuRender('array');?>
		
		<?php	foreach($arr as $key=>$link):?>
			<?php if($key):?><span class="seperator">|</span>  <?php endif;?>
			<a href="<?php echo $link[0] ?>" class="current"><?php echo $link[1]; ?></a> 
			
		<?php endforeach;?>	
		
		<!--a href="<?php echo $this->baseUrl("/store") ?>" class="current">Schedule A Phone Call</a> 
		<span class="seperator">|</span>  
		<a href="<?php echo $this->baseUrl("/gift-idea") ?>">Gift Ideas</a> 
		<span class="seperator">|</span>  
		<a href="<?php echo $this->baseUrl("/about-the-real-santa") ?>">About the REAL Santa</a> 
		<span class="seperator">|</span> 
		<a href="<?php echo $this->baseUrl("/what-satisfied-parents-say") ?>"> What Satisfied Parents Say</a> 
		<span class="seperator">|</span> 
		<a href="<?php echo $this->baseUrl("/contactus") ?>">Contact Us</a -->  
		</div>
	</div>
	</div>